export default {
  path: "/order",
  redirect: "/order",
  meta: {
    icon: "ri:folder-line",
    // showLink: false,
    title: "订单管理",
    rank: 2
  },
  children: [
    {
      path: "/order/",
      name: "hello",
      component: () => import("@/views/order/hello.vue"),
      meta: {
        icon: "ri:file-line",
        title: "欢迎"
      }
    },
    {
      path: "/order/addaudit",
      name: "addaudit",
      component: () => import("@/views/order/addaudit.vue"),
      meta: {
        icon: "ri:file-line",
        title: "新增审核表",
        roles: ["admin", "saleman"]
      }
    },
    {
      path: "/order/audit",
      name: "audit",
      component: () => import("@/views/order/audit.vue"),
      meta: {
        icon: "ri:file-line",
        title: "审核表",
        roles: ["admin", "saleman"]
      }
    },
    {
      path: "/order/index",
      name: "list",
      component: () => import("@/views/order/index.vue"),
      meta: {
        icon: "ri:file-line",
        title: "用户订单",
        roles: ["admin", "saleman", "customer"]
      }
    },
    {
      path: "/order/createorder",
      name: "createorder",
      component: () => import("@/views/order/createorder.vue"),
      meta: {
        icon: "ri:file-line",
        title: "添加订单",
        roles: ["admin", "saleman"]
      }
    },
    {
      path: "/order/vendor",
      name: "vendor",
      component: () => import("@/views/order/vendor.vue"),
      meta: {
        icon: "ri:file-line",
        title: "供应商订单",
        roles: ["admin", "saleman", "supplier"]
      }
    },
    {
      path: "/order/huolist",
      name: "huolist",
      component: () => import("@/views/order/huolist.vue"),
      meta: {
        icon: "ri:file-line",
        title: "货代订单",
        roles: ["admin", "saleman", "freight"]
      }
    },
    {
      path: "/order/all",
      name: "all",
      component: () => import("@/views/order/all.vue"),
      meta: {
        icon: "ri:file-line",
        title: "完结汇总",
        roles: ["admin", "saleman"]
      }
    }
  ]
} satisfies RouteConfigsTable;
